//
//  SheZhiTableViewCell.m
//  ZhiBoYuan
//
//  Created by coder_di on 2018/4/17.
//  Copyright © 2018年 apple. All rights reserved.
//

#import "SheZhiTableViewCell.h"

@implementation SheZhiTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}



-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        //添加UI
        [self addUI];
    }
    return self;
}

-(void)addUI{
    
   self.nameLable = [[UILabel alloc]initWithFrame:CGRectMake(20 * KscreenWidth, 20 * KscreenHeight,ScreenWidth -  40 * KscreenWidth, 20 * KscreenHeight)];
    
    self.nameLable.text = @"2018小学暑秋课程上线发布会";
    self.nameLable.font = [UIFont systemFontOfSize:15 * KscreenWidth];
    [self.contentView addSubview:self.nameLable];
    
    self.detailLable = [[UILabel alloc]initWithFrame:CGRectMake(ScreenWidth - 130 * KscreenWidth, 20 * KscreenHeight, 100 * KscreenWidth, 20 * KscreenHeight)];
//    self.detailLable.text = @"课时：18";
    self.detailLable.font = [UIFont systemFontOfSize:15 * KscreenWidth];
    self.detailLable.textColor = hui4Color;
    self.detailLable.textAlignment = NSTextAlignmentRight;
    [self.contentView addSubview:self.detailLable];
    
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
